using System;
using NsbExtensions.Messages.Management.Monitoring;

namespace NsbExtensions.Server.Management.EndpointMonitor
{
    public interface IEndpointMonitorServerService : IEndpointService
    {
        TimeSpan EndpointMonitorInterval { get; set; }
        event EventHandler<EndpointStatusEventArgs> EndpointStatusUpdated;
        event EventHandler<EndpointStatusEventArgs> EndpointStatusExpired;

        void UpdateEndpointStatus(EndpointStatusMessage message);
    }
}